<%@page import="org.w3c.dom.NodeList"%>
<jsp:include page="../public/layouts/header.jsp" />

<div id="main" role="main">
	<h1>Affiche Factures</h1>
	
	<% NodeList factures = (NodeList)request.getAttribute("factures"); %>

	<table class="factures">
	<% if (factures.getLength() > 0){ %>
		<% for (int i = 0; i < factures.getLength(); i++) { %>
			<tr>
			<% NodeList facture = factures.item(i).getChildNodes(); %>
			
			<% for (int j = 0; j < facture.getLength(); j++) { %>
					<td><%= facture.item(j).getFirstChild() %></td>
			<% } %>
			</tr>
		<% } %>
	
	<% } %>
	</table>
	<%
// 		String id = request.getParameter("id");
// 		if (null != id) {
// 			out.flush();
// 			request.getRequestDispatcher(id + ".html").include(request,
// 					response);
// 		}
	%>
</div>
<jsp:include page="../public/layouts/footer.jsp" />